package com.wyh.domain.dto.feemanagementdto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PaymentRecordsDtos implements Serializable {
    @Min(message = "【current】不能小于零",value = 0L)
    @ApiModelProperty(value = "当前页")
    private int current;
    @Min(message = "【size】不能小于1",value = 1L)
    @ApiModelProperty(value = "显示条数")
    private int size;
    @ApiModelProperty(value = "收款流水号{查询使用}")
    private String collectionnumber;
    @ApiModelProperty(value = "开始日期{查询使用}")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @ApiModelProperty(value = "结束日期{查询使用}")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    @Min(message = "请输入正确的金额", value = 0L)
    @ApiModelProperty(value = "金额起{查询使用}")
    private BigDecimal startAmount;
    @Min(message = "请输入正确的金额", value = 0L)
    @ApiModelProperty(value = "金额止{查询使用}")
    private BigDecimal endAmount;
    @ApiModelProperty(value = "客户id")
    private Integer customerid;
    @ApiModelProperty(value = "楼盘名称{撤销认领时填写}")
    private String propertyname;
}
